import Vue from 'vue'
import './plugins/axios'
import App from './App.vue'
import echarts from 'echarts'
import './plugins/beauty.js'
//导入全局样式表
import  './assets/css/global.css'

import router from './router'


import axios from 'axios'
import './plugins/element.js'
//配置请求根路径
axios.defaults.baseURL='https://sdu-miniprogram.cn:8888'
// axios.defaults.baseURL='https://mockapi.eolinker.com/SN5C9Ybd511179abd037ba7a2443cbd1f4885103f842b3e'

axios.interceptors.request.use(config=>{
  console.log(config)
  config.headers.Authorization=window.sessionStorage.getItem('token')
  return config
})

Vue.prototype.$http=axios
Vue.prototype.$echarts =echarts

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
